package org.qqcui.designpattern.patterns.factory.factorymethod.pizza;

/**
 * 工厂方法模式下的pizza
 *
 * @author cuiqingqiang
 * @version 1.0
 * @date 2020-10-17 21:54
 **/
public abstract class Pizza {

	/**
	 * 披萨的名称
	 */
	protected String name;

	public abstract void prepare();

	public void bake() {
		System.out.println(name + "，开始烘烤");
	}

	public void cut() {
		System.out.println(name + "，开始切割");
	}

	public void box() {
		System.out.println(name + "，开始打包");
	}

	public void setName(String name) {
		this.name = name;
	}
}
